"""
PlumeSoft 量化代码库
作者：PlumeSoft
用途：贝叶斯选币炼丹炉
"""

import os
import sys

# 获取当前 py 文件所在的目录
current_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# 将当前目录添加到 import 搜索目录中
sys.path.append(current_dir)

from program.plumesoft_bys.bys_core import Bayesian_Search
from program.plumesoft_bys.bys_select_coin import SelectCoin_Bayesian
from program.plumesoft_bys.bys_upgrade import daily_check_app_upgrade, print_copyright
import program.plumesoft_bys.bys_config as bys_cfg

if __name__ == "__main__":
    print_copyright()

    # 每天检查一次软件更新
    daily_check_app_upgrade()

    Bayesian_Search(bys_cfg.default_params.copy(), SelectCoin_Bayesian())
